<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTestingDetailsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('testing_detail', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name',100)->nullable()->comment('测评名称');
            $table->Integer('cate_id')->default(0)->comment('类别id');
            $table->string('theme',20)->default('default')->comment('主题');
            $table->string('result_type',20)->nullable()->comment('结果类型');
            $table->Integer('questions_count')->default(0)->comment('题目总数');
            $table->Integer('test_times')->default(0)->comment('参与测评次数');
            $table->string('note',255)->nullable()->comment('参与测评次数');
            $table->Integer('time')->default(0)->comment('完成测评所需时间');
            $table->string('gist',255)->nullable()->comment('评估依据');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('testing_detail');
    }
}
